import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),
  ],
  server: {
    host: "0.0.0.0",
    hmr: {
      clientPort: 443,
    },
    port: 23994,
  },
  define: {
    "process.env": process.env,
  },
  resolve: {
    alias: {
      // 这里配置 @ 指向 src 目录
      "@": "/src",
    },
  },
});
